home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
bbsutils
/
occps24.arj
/
OCCPS1.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1994-03-05
|
9KB
|
343 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 1.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
Integer INTEGER006
Integer INTEGER007
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
String STRING009
String STRING010
String STRING011
String STRING012
String STRING013
String STRING014
String STRING015
String STRING016
String STRING017
;------------------------------------------------------------------------------
STRING001 = PPEPath() + "SECURE" + String(CurSec())
If (Exist(STRING001)) Then
DispFile PPEPath() + "SECURE", 2 + 1 + 4
Delay 91
End
Endif
:LABEL001
STRING002 = PPEPath() + "OCCPS.CFG"
STRING003 = ReadLine(STRING002, 1)
STRING004 = ReadLine(STRING002, 2)
STRING005 = ReadLine(STRING002, 3)
INTEGER002 = Asc(Mid(STRING003, 1, 1)) + Asc(Mid(STRING003, 2, 1)) + Asc(Mid(STRING003, 3, 1)) + Asc(Mid(STRING003, 4, 1)) + Asc(Mid(STRING003, 5, 1)) + Asc(Mid(STRING003, 6, 1)) + Asc(Mid(STRING003, 7, 1)) + Asc(Mid(STRING003, 8, 1)) + Asc(Mid(STRING003, 9, 1)) + Asc(Mid(STRING003, 10, 1))
INTEGER003 = Asc(Mid(STRING004, 1, 1)) + Asc(Mid(STRING004, 2, 1)) + Asc(Mid(STRING004, 3, 1)) + Asc(Mid(STRING004, 4, 1)) + Asc(Mid(STRING004, 5, 1)) + Asc(Mid(STRING004, 6, 1)) + Asc(Mid(STRING004, 7, 1)) + Asc(Mid(STRING004, 8, 1))
INTEGER004 = Asc(Mid(STRING003, 11, 1)) + Asc(Mid(STRING003, 12, 1)) + Asc(Mid(STRING003, 13, 1)) + Asc(Mid(STRING003, 14, 1)) + Asc(Mid(STRING003, 15, 1)) + Asc(Mid(STRING003, 16, 1)) + Asc(Mid(STRING003, 17, 1)) + Asc(Mid(STRING003, 18, 1)) + Asc(Mid(STRING003, 19, 1)) + Asc(Mid(STRING003, 20, 1))
STRING006 = String(INTEGER002) + String(INTEGER003) + String(INTEGER004)
Cls
PrintLn ""
PrintLn " @X7F ┌───────────────────────────────────────────────────────────────@X70┐ @XFF"
PrintLn " @X7F │ @X70 ONLINE CREDIT CARD PROCESSOR SYSTEM 2.4 @X70│ @XFF"
PrintLn " @X7F │ @X70 @BOARDNAME:45C@ @POS:72@@X70│ @XFF"
If (STRING006 == STRING005) Then
PrintLn " @X7F │ @X70│ @XFF"
Else
PrintLn " @X7F │ @XF4UNREGISTERED VERSION @X70│ @XFF"
Endif
PrintLn " @X7F │ @X71The use of an invalid credit card or unauthorized use of one @X70│ @XFF"
PrintLn " @X7F │ @X71for the purpose of accessing this board constitutes fraud and @X70│ @XFF"
PrintLn " @X7F │ @X71will be reported to the proper law enforcement agencies. @X70│ @XFF"
PrintLn " @X7F └@X70───────────────────────────────────────────────────────────────┘ @XFF"
PrintLn ""
PrintLn " @X4F ┌───────────────────────────────────────────────────────────────@X40┐ @XFF"
PrintLn " @X4F │ @X40Registering with a credit card you will receive an @X4FIMMEDIATE @X40│ @XFF"
PrintLn " @X4F │ @X40access upgrade for use during this session. @X40│ @XFF"
PrintLn " @X4F └@X40───────────────────────────────────────────────────────────────┘ @XFF"
PrintLn ""
PrintLn ""
PrintLn " @X13 ┌─────────────────────────────────────────────────────@X10┐ @XFF"
PrintLn " @X13 │ @X1EType @X1D1@X1E to Register using your credit card. @X10│ @XFF"
PrintLn " @X13 │ @X1EType @X1D2 @X1Eto Download REGISTER.ZIP and send by mail. @X10│ @XFF"
PrintLn " @X13 └@X10-────────────────────────────────────────────────────┘ @XFF"
PrintLn ""
STRING007 = ""
InputStr "@X0BWhich type registration would you prefer (@X0D1@X0B-@X0D2@X0B)@X07", STRING007, 10, 1, "12", 270
Select Case (STRING007)
Case "1"
Log "*** Entered OCCPS with Credit Card Option ***", 0
Gosub LABEL002
Case "2"
Log "*** Downloaded registration form via OCCPS ***", 0
KbdStuff "D;REGISTER.ZIP" + Chr(13)
End
Case STRING005
End
Case Else
Cls
PrintLn ""
PrintLn " @X7F ┌───────────────────@X70┐ @XFF"
PrintLn " @X7F │ @XF4UNREGISTERED COPY @X70│ @XFF"
PrintLn " @X7F └@X70───────────────────┘ @XFF"
PrintLn ""
PrintLn ""
PrintLn " @X7F ┌────────────────────────────────────────────────@X70┐ @XFF"
PrintLn " @X7F │ @X74PLEASE ASK YOUR SYSOP TO REGISTER THIS PROGRAM @X70│ @XFF"
PrintLn " @X7F └@X70────────────────────────────────────────────────┘ @XFF"
Delay 91
Log "*** Exited OCCPS without Registering ***", 0
End
End Select
:LABEL002
Cls
DispFile PPEPath() + "CATLOG", 2 + 1 + 4
FAppend 1, PPEPath() + "CHARGE.LOG", 2, 3
INTEGER005 = ""
InputInt "@X0B(@X0D#@X0B-@X0D##@X0B) of Selection, (@X0DEnter@X0B) TO Quit @X07", INTEGER005, 10
PrintLn ""
If (INTEGER005 == "") Goto LABEL003
INTEGER006 = Left(ReadLine(STRING002, INTEGER005 + 3), 3)
INTEGER007 = Right(ReadLine(STRING002, INTEGER005 + 3), 3)
If (INTEGER006 == 0) Then
Gosub LABEL002
Endif
Log "*** Placed order for Selection No " + String(INTEGER005) + " via OCCPS ***", 0
FPutLn 1, "********************************************************************"
FPutLn 1, "ORDERED: Selection No " + String(INTEGER005)
FPutLn 1, "Level " + String(INTEGER006) + " Subscription"
FPutLn 1, " "
Goto LABEL004
:LABEL003
Cls
FClose 1
Gosub LABEL001
:LABEL004
InputCC "Enter credit card number", STRING008, 15
If (STRING008 == "") Then
If (STRING006 == STRING005) Then
Cls
FClose 1
End
Else
Cls
PrintLn ""
PrintLn " @X7F ┌───────────────────@X70┐ @XFF"
PrintLn " @X7F │ @XF4UNREGISTERED COPY @X70│ @XFF"
PrintLn " @X7F └@X70───────────────────┘ @XFF"
PrintLn ""
PrintLn ""
PrintLn " @X7F ┌────────────────────────────────────────────────@X70┐ @XFF"
PrintLn " @X7F │ @X74PLEASE ASK YOUR SYSOP TO REGISTER THIS PROGRAM @X70│ @XFF"
PrintLn " @X7F └@X70────────────────────────────────────────────────┘ @XFF"
Delay 91
Log "*** Exited OCCPS without Registering ***", 0
Cls
FClose 1
End
Endif
ElseIf (ValCC(STRING008) && (CCType(STRING008) <> "UNKNOWN")) Then
PrintLn ""
PrintLn "@X0EThis card was issued by: @X0B", Left(CCType(STRING008), 20)
PrintLn "@X0E The account number is: @X0B", FmtCC(STRING008)
FPutLn 1, " User: " + U_Name()
FPutLn 1, " Date: " + String(Date()) + " (" + String(Time()) + ")"
FPutLn 1, " Card Type: " + Left(CCType(STRING008), 20)
FPutLn 1, " Card Number: " + FmtCC(STRING008)
STRING010 = ""
PrintLn ""
PrintLn "@X0EEnter the Card Expiration Date (as shown on card)"
InputStr "", STRING010, 11, 25, Mask_AlNum() + "/", 64
FPutLn 1, " Expiration Date: " + STRING010
FPutLn 1, " "
STRING009 = ""
PrintLn ""
PrintLn "@X0EEnter the Cardholder's Name (as shown on card)"
InputStr "", STRING009, 11, 25, Mask_AlNum() + " ", 64
FPutLn 1, " Cardholder's Name: " + STRING009
STRING011 = ""
PrintLn ""
PrintLn "@X0ECardholder's Street Address (Line 1)"
InputStr "", STRING011, 11, 25, Mask_AlNum() + " ", 64
FPutLn 1, "Cardholder's Address: " + STRING011
STRING012 = ""
PrintLn ""
PrintLn "@X0ECardholder's Suite or Apartment Number"
InputStr "", STRING012, 11, 25, Mask_AlNum() + " ", 64
If (STRING012 <> "") Then
FPutLn 1, " : " + STRING012
Endif
STRING013 = ""
PrintLn ""
PrintLn "@X0ECardholder's City (without state)"
InputStr "", STRING013, 11, 25, Mask_AlNum() + " ", 64
STRING014 = ""
PrintLn ""
PrintLn "@X0ECardholder's State"
InputStr "", STRING014, 11, 2, Mask_Alpha(), 64
STRING015 = ""
PrintLn ""
PrintLn "@X0ECardholder's Zip Code"
InputStr "", STRING015, 11, 10, Mask_Num() + "-", 64
FPutLn 1, " : " + STRING013 + ", " + STRING014 + " " + STRING015
STRING016 = ""
PrintLn ""
PrintLn "@X0ECardholder's Home Phone Number"
InputStr "", STRING016, 11, 12, Mask_Num() + "-", 64
FPutLn 1, " Home Phone Number: " + STRING016
STRING017 = ""
PrintLn ""
PrintLn "@X0ECardholder's Work Phone Number"
InputStr "", STRING017, 11, 12, Mask_Num() + "-", 64
FPutLn 1, " Work Phone Number: " + STRING017
FPutLn 1, " "
FPutLn 1, "Credit Card Processing Completed Normally"
FClose 1
PrintLn ""
GetUser
If (U_Sec < INTEGER006) Then
PrintLn "Raising your security access to level " + String(INTEGER006) + "..."
U_Sec = INTEGER006
U_ExpDate = Date() + INTEGER007
PrintLn ""
PrintLn "Automatic upgrade Complete!"
ElseIf (U_Sec == INTEGER006) Then
PrintLn "Extending your level " + String(INTEGER006) + " security access..."
U_ExpDate = U_ExpDate + INTEGER007
PrintLn ""
PrintLn "Automatic upgrade Complete!"
Else
PrintLn "Level requested is lower than existing level"
PrintLn "No change in level made"
Endif
PutUser
PrintLn ""
PrintLn "Your subscription will expire on ", U_ExpDate
PrintLn ""
PrintLn "@X0FThank you @X0D@USER@ @X0Ffor your order"
Delay 91
Log "Completed Credit Card Processing!", 0
If (STRING006 == STRING005) Then
End
Else
Cls
PrintLn ""
PrintLn " @X7F ┌───────────────────@X70┐ @XFF"
PrintLn " @X7F │ @XF4UNREGISTERED COPY @X70│ @XFF"
PrintLn " @X7F └@X70───────────────────┘ @XFF"
PrintLn ""
PrintLn ""
PrintLn " @X7F ┌────────────────────────────────────────────────@X70┐ @XFF"
PrintLn " @X7F │ @X74PLEASE ASK YOUR SYSOP TO REGISTER THIS PROGRAM @X70│ @XFF"
PrintLn " @X7F └@X70────────────────────────────────────────────────┘ @XFF"
Delay 91
End
Endif
Else
PrintLn ""
PrintLn "@X0EThis is an @X0CINVALID @X0ECredit Card number!"
PrintLn ""
Delay 91
Log "Attempted to use an INVALID Credit Card number", 0
Endif
STRING008 = ""
Gosub LABEL002
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 8 End
; 8 Cls
; 25 Goto
; 26 Let
; 87 PrintLn
; 14 If
; 2 DispFile
; 1 FAppend
; 4 FClose
; 18 FPutLn
; 1 GetUser
; 1 PutUser
; 7 Log
; 10 InputStr
; 1 InputInt
; 1 InputCC
; 4 Gosub
; 6 Delay
; 1 KbdStuff
;
;
; ■ Functions used :
;
; 77 +
; 10 ==
; 2 <>
; 1 <
; 14 !
; 1 &&
; 28 Mid()
; 3 Left()
; 1 Right()
; 1 Chr()
; 28 Asc()
; 2 Date()
; 1 Time()
; 1 U_Name()
; 11 String()
; 1 Mask_Alpha()
; 3 Mask_Num()
; 5 Mask_AlNum()
; 5 PPEPath()
; 5 ReadLine()
; 1 CurSec()
; 1 Exist()
; 1 ValCC()
; 2 FmtCC()
; 3 CCType()
;
;------------------------------------------------------------------------------
;
; Analysis flags : W
;
; W - Write user ■ 5
; Program writes a user record. Although this may be normal for a
; User Editor, it may also be a way to modify an account level.
; ■ Search for : PUTUSER
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 0 While/EndWhile
; 10 If/Then or If/Then/Else
; 1 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------